package graph;

/**
 * Base class for customer sites
 * 
 * @author xiaohui
 * 
 */
public class CustNode extends GraphNode {

	private double score;
	private double[] point;
	private NetworkPoint eloc;

	public CustNode(int id, double x, double y) {
		super(id);
		super.x = x;
		super.y = y;
		this.score = 0;
		point = new double[] { this.x, this.y };
	}

	public NetworkPoint getEloc() {
		return eloc;
	}

	public void setEloc(NetworkPoint eloc) {
		this.eloc = eloc;
	}

	public CustNode(int id, double x, double y, double score) {
		super(id);
		super.x = x;
		super.y = y;
		this.score = score;
	}

	/**
	 * @return the score
	 */
	public double getScore() {
		return score;
	}

	/**
	 * @param score
	 *            the score to set
	 */
	public void setScore(double score) {
		this.score = score;
	}

	public double[] getPoint() {
		return point;
	}

}
